package edu.uj.util;

/**
 * interface for classes wanting to be notified of changed made in an Observed.
 * @author Piotrek
 */
public interface Observer {
    /**
     * this method is called when Observed wants to notify all its Observers of 
     * change in its state.
     * @param eventCode type of event that caused the notification. Observed classes 
     * should define their unique codes as public final static fields.
     */
    public void notifyFromObserved(int eventCode);
}
